import {baseRequest} from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/tjzy/ht/` + url, ...arg)
export default {
	callRecordPage(data) {
		return request('record/pageList', data, 'post')
	},
	getHtAccount() {
		return request('getHtAccount', '', 'get')
	},
	setCallNumber(callNumber) {
		return request('setCallNumber/' + callNumber, '', 'get')
	},
	getCallNumber() {
		return request('getCallNumber', '', 'get')
	},
	setCallUser(callId) {
		return request('setCallUser/' + callId, '', 'get')
	},
	sendMessage() {
		return request('sendMessage', '', 'get')
	},
	startListen(agentExtNo) {
		return request('listen/start/' + agentExtNo, '', 'get')
	},
	stopListen(agentExtNo) {
		return request('listen/stop/' + agentExtNo, '', 'get')
	},
	syncCallRecord() {
		return request('testSyncCallRecord', '', 'get')
	}
}
